﻿using JinYuan.Models.HelperAttribute;
using SqlSugar;

namespace JinYuan.Models
{
    /// <summary>
    /// 
    /// </summary>
    public class BGearEntity
    {
        public string[] ScanTime = new string[3];//AB芯包扫码时间
        public int[,] CCD_Data = new int[3, 27];//芯包CCD信息1,2,3
        /// <summary>
        /// 通道
        /// </summary>
        [DataGridViewColumn(Name = "OutChannelNo")]
        [DataGridColumnAttribute("ChannelNo")]
        public int ChannelNo { get; set; }

        /// <summary>
        /// 芯包条码
        /// </summary>
        [DataGridViewColumn(Name = "OutBarCode")]
        [DataGridColumnAttribute("BarCode")]
        public string BarCode { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
       
        public string TestTime { get; set; }

        /// <summary>
        /// A芯包扫码时间//
        /// </summary>
        [DataGridColumnAttribute("CSBYHASCANNINGTIME")]
        public string CSBYHASCANNINGTIME { get; set; }
        
        /// <summary>
        /// 上传状态
        /// </summary>
        public string UpState { get; set; }
       
        /// <summary>
        /// 物料编码
        /// </summary>
        [DataGridColumnAttribute("FrmHistory_dgv_Main_MaterialCode")]

        public string MaterialCode { get; set; }
        /// <summary>
        /// 区分A和B
        /// </summary>
        // public string A_B { get; set; }
        /// <summary>
        /// 电芯1_CCD1结果 1 OK，0 NG，2 缺图
        /// </summary>

        public int CCD1 { get; set; }
        
        public int CCD2 { get; set; }
        
        public int CCD3 { get; set; }
        
        public int CCD4 { get; set; }
       
        public int CCD5 { get; set; }
        
        public int CCD6 { get; set; }
        
        public int CCD7 { get; set; }
        
        public int CCD8 { get; set; }
        
        public int CCD9 { get; set; }
        
        public int CCD10 { get; set; }
       
        public int CCD11 { get; set; }
       
        public int CCD12 { get; set; }
        
        public int CCD13 { get; set; }
        
        public int CCD14 { get; set; }
       
        public int CCD15 { get; set; }
        
        public int CCD16 { get; set; }
        
        public int CCD17 { get; set; }
        
        public int CCD18 { get; set; }
        
        public int CCD19 { get; set; }
        
        public int CCD20 { get; set; }
        
        public int CCD21 { get; set; }
        
        public int CCD22 { get; set; }
        
        public int CCD23 { get; set; }
       
        public int CCD24 { get; set; }
      
        public int CCD25 { get; set; }
        
        public int CCD26 { get; set; }
        
        public int CCD27 { get; set; }

        /// <summary>
        /// 电芯_CCD1结果  1 OK，0 NG，2 缺图
        /// </summary>
        [DataGridViewColumn(Name = "CCDResult1")]
        public string CCDResult1 { get; set; }
        [DataGridViewColumn(Name = "CCDResult2")]
        public string CCDResult2 { get; set; }
        [DataGridViewColumn(Name = "CCDResult3")]
        public string CCDResult3 { get; set; }
        [DataGridViewColumn(Name = "CCDResult4")]
        public string CCDResult4 { get; set; }
        [DataGridViewColumn(Name = "CCDResult5")]
        public string CCDResult5 { get; set; }
        [DataGridViewColumn(Name = "CCDResult6")]
        public string CCDResult6 { get; set; }
        [DataGridViewColumn(Name = "CCDResult7")]
        public string CCDResult7 { get; set; }
        [DataGridViewColumn(Name = "CCDResult8")]
        public string CCDResult8 { get; set; }
        [DataGridViewColumn(Name = "CCDResult9")]
        public string CCDResult9 { get; set; }
        [DataGridViewColumn(Name = "CCDResult10")]
        public string CCDResult10 { get; set; }
        [DataGridViewColumn(Name = "CCDResult11")]
        public string CCDResult11 { get; set; }
        [DataGridViewColumn(Name = "CCDResult12")]
        public string CCDResult12 { get; set; }
        [DataGridViewColumn(Name = "CCDResult13")]
        public string CCDResult13 { get; set; }
        [DataGridViewColumn(Name = "CCDResult14")]
        public string CCDResult14 { get; set; }
        [DataGridViewColumn(Name = "CCDResult15")]
        public string CCDResult15 { get; set; }
        [DataGridViewColumn(Name = "CCDResult16")]
        public string CCDResult16 { get; set; }
        [DataGridViewColumn(Name = "CCDResult17")]
        public string CCDResult17 { get; set; }
        [DataGridViewColumn(Name = "CCDResult18")]
        public string CCDResult18 { get; set; }
        [DataGridViewColumn(Name = "CCDResult19")]
        public string CCDResult19 { get; set; }
        [DataGridViewColumn(Name = "CCDResult20")]
        public string CCDResult20 { get; set; }
        [DataGridViewColumn(Name = "CCDResult21")]
        public string CCDResult21 { get; set; }
        [DataGridViewColumn(Name = "CCDResult22")]
        public string CCDResult22 { get; set; }
        [DataGridViewColumn(Name = "CCDResult23")]
        public string CCDResult23 { get; set; }
        [DataGridViewColumn(Name = "CCDResult24")]
        public string CCDResult24 { get; set; }
        [DataGridViewColumn(Name = "CCDResult25")]
        public string CCDResult25 { get; set; }
        [DataGridViewColumn(Name = "CCDResult26")]
        public string CCDResult26 { get; set; }
        [DataGridViewColumn(Name = "CCDResult27")]
        public string CCDResult27 { get; set; }

        /// <summary>
        /// 电芯A/B出站判定结果
        /// </summary>
        [DataGridViewColumn(Name = "CSBYHOUTSTATIONJUDGMENTRESULT")]
        public string CSBYHOUTSTATIONJUDGMENTRESULT { get; set; }
        /// <summary>
        /// 电芯A/B工序名
        /// </summary>
        [DataGridViewColumn(Name = "CSBYHPROCESSNAME")]
        public string CSBYHPROCESSNAME { get; set; }
        /// <summary>
        /// 电芯A/B班次
        /// </summary>
        [DataGridViewColumn(Name = "CSBYHSCHEDULE")]
        public string CSBYHSCHEDULE { get; set; }
        /// <summary>
        /// 电芯A/B进站时间
        /// </summary>
        [DataGridViewColumn(Name = "CSBYHINSTATIONTIME")]
        public string CSBYHINSTATIONTIME { get; set; }
        /// <summary>
        /// 电芯A/B出站时间
        /// </summary>
       [DataGridViewColumn(Name = "CSBYHOUTSTATIONTIME")]
        public string CSBYHOUTSTATIONTIME { get; set; }
        /// <summary>
        /// 发送给PLC的结果
        /// </summary>
        public int PlcResult { get; set; }
        /// <summary>
        /// 复投次数
        /// </summary>
        public int RethrowNum { get; set; }
        /// <summary>
        /// 出站是否上传MES
        /// </summary>
        [DataGridViewColumn(Name = "OutFlag")]
        public string Flag { get; set; }
        /// <summary>
        /// 结果数据是否上传MES
        /// </summary>
        public string Flag1 { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [DataGridViewColumn(Name = "OutRemark")]
        public string Remark { get; set; }

        /// <summary>
        /// 综合结果
        /// </summary>
        [DataGridViewColumn(Name = "OutResult")]
        public string Result { get; set; }
        /// <summary>
        /// NG详情
        /// </summary>
        [DataGridViewColumn(Name = "OutInfo")]
        public string Info { get; set; }

    }
}
